package cn.com.scitc.pano.file;

import java.io.File;
import java.io.FilenameFilter;

public class NameFilter implements FilenameFilter {
    private String extent;
    public NameFilter(String extent) {
        this.extent = extent;
    }
    @Override
    public boolean accept(File dir, String name) {
        return name.endsWith(extent);
    }
}
